package com.bruan.d5_objectoutputstream;

import java.io.*;

public class Test2ObjectOutputStream {
    public static void main(String[] args) {
        try(
                ObjectInputStream os =  new ObjectInputStream(new FileInputStream("file-io-app\\zlive.txt"));
                ) {
            User u = (User) os.readObject();
            System.out.println(u);
        } catch (Exception e) {
            e.printStackTrace();
        }

    }
}
